package com.css.fxfzcpxx.modules.courseManage.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.css.fxfzcpxx.modules.util.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: zhangSongRui
 * @CreateTime: 2023/03/08
 * @Description: 在线课堂管理
 */
@Data
@ExcelTarget("CourseManage")
public class CourseManage extends BaseEntity {
    //主键id
    private String id;
    //课程名称
    @Excel(name = "课程名称", width = 30, orderNum = "1")
    private String courseName;
    //课程类别名称
    @Excel(name = "课程类别", width = 25, orderNum = "3")
    private String courseType;
    //课程类别id
    private String courseTypeId;
    //发布日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "发布日期", width = 25, orderNum = "2")
    private Date releaseDate;
    //课堂练习试卷id
    private String exerciseId;
    //课堂练习 0有1没有
    @Excel(name = "发布状态", width = 15, orderNum = "4",replace={"有_0","没有_1"})
    private String exercise;
    //发布状态 0发布1没有发布
    @Excel(name = "发布状态", width = 15, orderNum = "5",replace={"已发布_0","未发布_1"})
    private String releaseState;
    //课件(mp3,mp4等,只允许一个)
    private String courseFile;
    //是否允许下载 0能1不能
    private String download;
    //课程封面(建议大小不超过2m)
    private String cover;
    //课程简介
    @Excel(name = "课程简介", width = 50, orderNum = "6")
    private String courseIntroduction;
    //备注
    @Excel(name = "备注", width = 50, orderNum = "7")
    private String note;
}
